﻿using System.Collections.Generic;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Media;
namespace underwater
{
    static class Loader//загрузчик контента
    {
        public static Dictionary<TextureEnum, Texture2D> Textures;
        public static Dictionary<FontEnum, SpriteFont> Fonts;
        public static Dictionary<SoundEnum, Song> Sounds;
        //удалил структуру удали её из перечесления тоже!!!
        public static void Load(ContentManager content)
        {
            Textures = new Dictionary<TextureEnum, Texture2D>();
            Fonts = new Dictionary<FontEnum, SpriteFont>();
            Sounds = new Dictionary<SoundEnum, Song>();
            Textures.Add(TextureEnum.Bk1600x1200, content.Load<Texture2D>(@"Textures\Background\Background_1600 x 1200"));
            Textures.Add(TextureEnum.Bk1920x1200, content.Load<Texture2D>(@"Textures\Background\Background_1920 x 1200"));
            Textures.Add(TextureEnum.Bk1920x1080, content.Load<Texture2D>(@"Textures\Background\Background_1920x1080"));

            Textures.Add(TextureEnum.About, content.Load<Texture2D>(@"Textures\Menu\About"));
            Textures.Add(TextureEnum.AboutACT, content.Load<Texture2D>(@"Textures\Menu\AboutActive"));
            Textures.Add(TextureEnum.Exit, content.Load<Texture2D>(@"Textures\Menu\Exit"));
            Textures.Add(TextureEnum.ExitACT, content.Load<Texture2D>(@"Textures\Menu\ExitActive"));
            Textures.Add(TextureEnum.Start, content.Load<Texture2D>(@"Textures\Menu\Start"));
            Textures.Add(TextureEnum.StartACT, content.Load<Texture2D>(@"Textures\Menu\StartActive"));
            Textures.Add(TextureEnum.Return, content.Load<Texture2D>(@"Textures\Menu\Return"));
            Textures.Add(TextureEnum.ReturnACT, content.Load<Texture2D>(@"Textures\Menu\ReturnActive"));
            Textures.Add(TextureEnum.ReturnDSB, content.Load<Texture2D>(@"Textures\Menu\ReturnDisable"));
            Textures.Add(TextureEnum.UsersMenu, content.Load<Texture2D>(@"Textures\Menu\UsersMenu"));
            Textures.Add(TextureEnum.Fridge, content.Load<Texture2D>(@"Textures\Menu\fringe"));
            Textures.Add(TextureEnum.Slider, content.Load<Texture2D>(@"Textures\Menu\slider"));

            Textures.Add(TextureEnum.Logo, content.Load<Texture2D>(@"Textures\logo"));
            Textures.Add(TextureEnum.Cursor, content.Load<Texture2D>(@"Textures\CursorAnim"));
            Textures.Add(TextureEnum.CursorDelete, content.Load<Texture2D>(@"Textures\CursorDeleted"));
            Textures.Add(TextureEnum.Cpoint, content.Load<Texture2D>(@"Textures\point"));
            Textures.Add(TextureEnum.Bubble, content.Load<Texture2D>(@"Textures\bubble"));
            Textures.Add(TextureEnum.Water, content.Load<Texture2D>(@"Textures\water"));
            Textures.Add(TextureEnum.Pixel, content.Load<Texture2D>(@"Textures\pixel"));
            Textures.Add(TextureEnum.CursorBinoclars, content.Load<Texture2D>(@"Textures\binoculars")); 

            Textures.Add(TextureEnum.Cloud1, content.Load<Texture2D>(@"Textures\Cloud\Cloud1"));
            Textures.Add(TextureEnum.Cloud2, content.Load<Texture2D>(@"Textures\Cloud\Cloud2"));
            Textures.Add(TextureEnum.Cloud3, content.Load<Texture2D>(@"Textures\Cloud\Cloud3"));
            Textures.Add(TextureEnum.Bottom, content.Load<Texture2D>(@"Textures\bottom"));
            Textures.Add(TextureEnum.Sky, content.Load<Texture2D>(@"Textures\Cloud\Sky2"));

            Textures.Add(TextureEnum.SharkSwem, content.Load<Texture2D>(@"Textures\Fish\SharckSprite"));
            Textures.Add(TextureEnum.SharkEat, content.Load<Texture2D>(@"Textures\Fish\SharckSpriteEat"));
            Textures.Add(TextureEnum.mk, content.Load<Texture2D>(@"Textures\Fish\mk"));
            Textures.Add(TextureEnum.FishSmall, content.Load<Texture2D>(@"Textures\Fish\FishSmall"));
            Textures.Add(TextureEnum.VioletFish, content.Load<Texture2D>(@"Textures\Fish\BlueFish"));
            Textures.Add(TextureEnum.Skeleton, content.Load<Texture2D>(@"Textures\Fish\skeleton"));
            Textures.Add(TextureEnum.TurquoiseFish, content.Load<Texture2D>(@"Textures\Fish\TurquoiseFish"));
            Textures.Add(TextureEnum.RoboFish, content.Load<Texture2D>(@"Textures\Fish\RoboFish"));
            Textures.Add(TextureEnum.YellowFish, content.Load<Texture2D>(@"Textures\Fish\DarkVioletFish"));
            Textures.Add(TextureEnum.Nibbler, content.Load<Texture2D>(@"Textures\Fish\Nibbler"));
            Textures.Add(TextureEnum.RedFish, content.Load<Texture2D>(@"Textures\Fish\RedFish"));


            Textures.Add(TextureEnum.WeesGreenGrowing, content.Load<Texture2D>(@"Textures\Weeds\WeesGreenGrowing"));
            Textures.Add(TextureEnum.WeesGreenLive, content.Load<Texture2D>(@"Textures\Weeds\WeesGreenLive"));
            Textures.Add(TextureEnum.RedWees, content.Load<Texture2D>(@"Textures\Weeds\RedWees"));

            Fonts.Add(FontEnum.Comic_Sans_MS8, content.Load<SpriteFont>(@"Fonts\Comic_Sans_MS8"));
            Fonts.Add(FontEnum.Comic_Sans_MS22, content.Load<SpriteFont>(@"Fonts\Comic_Sans_MS22"));
            Fonts.Add(FontEnum.Arial22, content.Load<SpriteFont>(@"Fonts\Arial22"));
            Fonts.Add(FontEnum.Arial42, content.Load<SpriteFont>(@"Fonts\Arial42"));

            Sounds.Add(SoundEnum.MenuFon, content.Load<Song>(@"Sounds\sound"));   
        }            
    }

    //перечесление звуков
    public enum SoundEnum
    {
        MenuFon
    }
    //перечесления шрифтов
    public enum FontEnum
    {
        Comic_Sans_MS8,
        Comic_Sans_MS22,
        Arial22,
        Arial42
    }
    //перечесление тексттур
    public enum TextureEnum
    {
        Bk1600x1200, Bk1920x1200, Bk1920x1080, Logo,
        Return, ReturnACT, ReturnDSB,
        Start, StartACT,
        About, AboutACT,
        Exit, ExitACT,
        Cursor, Cpoint, CursorDelete,CursorBinoclars,
        Bubble, Water,Pixel,
        UsersMenu, Slider, Fridge,
        Cloud1, Cloud2, Cloud3, Sky1, Sky, Bottom,
        SharkSwem, SharkEat, mk, FishSmall, VioletFish, Nibbler,
        Skeleton, TurquoiseFish, RoboFish, YellowFish, RedFish, WeesGreenGrowing, WeesGreenLive, RedWees
    }
}

